Skip to content

GH-1701 - Fix JPA event publication delete batching#1702

Closed
char-yb wants to merge 14 commits into
spring-projects:mainfrom
char-yb:fix/gh-1702-jpa-publication-delete-batching
Closed

GH-1701 - Fix JPA event publication delete batching#1702
char-yb wants to merge 14 commits into
spring-projects:mainfrom
char-yb:fix/gh-1702-jpa-publication-delete-batching

Conversation

@char-yb

@char-yb char-yb commented May 20, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Bind JPA event publication delete queries to the current identifier batch instead of the original full identifier list.
  • Add a focused unit test covering delete batching for more than DELETE_BATCH_SIZE identifiers.

Details

JpaEventPublicationRepository.deletePublications(…) already splits identifiers into batches of 100, but each delete query was still binding the full identifiers list. For inputs larger than the batch size, this caused the same oversized IN parameter list to be sent repeatedly and did not actually honor the batching limit.

This change keeps the existing batching behavior and binds each query to the current batch.

odrotbohm and others added 6 commits May 14, 2026 20:47
…rnalization.

To ensure proper ordering of messages externalized via the outbox, we now block the generic execution that returns a CompletableFuture.

Co-Authored-By: Roland Beisel <info@rolandbeisel.de>
Signed-off-by: SAY-5 <saiasish.cnp@gmail.com>
Bind each delete query to the current identifier batch instead of

the original full identifier list.

Signed-off-by: char-yb <uiurihappy@naver.com>
@char-yb char-yb changed the title GH-1702 - Fix JPA event publication delete batching GH-1701 - Fix JPA event publication delete batching May 20, 2026
…elete-batching

Signed-off-by: yb__char <68099546+char-yb@users.noreply.github.com>
odrotbohm pushed a commit that referenced this pull request Jun 10, 2026
Bind each delete query to the current identifier batch instead of the original full identifier list.

Signed-off-by: char-yb <uiurihappy@naver.com>
Original pull request: GH-1702.
char-yb added 2 commits June 10, 2026 22:14
…elete-batching

Signed-off-by: yb__char <68099546+char-yb@users.noreply.github.com>
@odrotbohm odrotbohm closed this Jun 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix JPA event publication delete batching to bind each batch

2 participants